import { ExecutionContext, SetMetadata, createParamDecorator, applyDecorators } from '@nestjs/common';
import type { Request} from 'express';

export const Role = (...args: string[]) => SetMetadata('role', args);

export const ReqUrl = createParamDecorator((data:String, ctx:ExecutionContext) => {
  const req = ctx.switchToHttp().getRequest<Request>();
  console.log(data,"==============");
  return req.url;
});